package com.h.blog.common.exception;

import lombok.Data;

/**
 * 自定义异常
 */
@Data
public class BlogException extends RuntimeException{
    private int code;
    private String errMsg;

    public BlogException(int code, String errMsg) {
        this.code = code;
        this.errMsg = errMsg;
    }

    public BlogException(String errMsg) {
        this.errMsg = errMsg;
    }
}
